package gui.components.map.objects;

import java.awt.Polygon;
import java.awt.Shape;

public class objSubmarine extends objBasic{
	
	private static final long serialVersionUID = 1L;

	// Generate object
	public void GenerateShape()
	{
		Polygon _objsubmarine = new Polygon();
		_objsubmarine.addPoint(0,0);
		_objsubmarine.addPoint(0,3);
		_objsubmarine.addPoint(6,3);
		_objsubmarine.addPoint(6,0);
		_objsubmarine.addPoint(6,3);
		_objsubmarine.addPoint(0,3);
		_objsubmarine.addPoint(0,0);
		
	    //_shape = GenerateTransformedShape(_objfrigate);
		_shape = _objsubmarine;
	}
	
	public Shape GetShape() 
	{
		GenerateShape();
		return _shape;
	}
	
	public objSubmarine()
	{
		SetType(objType.Vehicle);
		GenerateShape();
	}
}
